home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / StateEditable.java < prev    next >
Text File  |  1998-06-30  |  2KB  |  49 lines

  1. /*
  2.  * @(#)StateEdit.java       1.8 97/07/28
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.swing.undo;
  22.  
  23. import java.util.Hashtable;
  24.  
  25.  
  26. /**
  27.  * StateEditable defines the interface for objects that can have
  28.  * their state undone/redone by a StateEdit.
  29.  *
  30.  * @see StateEdit
  31.  */
  32.  
  33. public interface StateEditable {
  34.  
  35.     public static final String RCSID = "$Id: StateEditable.java,v 1.2 1997/09/08 19:39:08 marklin Exp $";
  36.  
  37.     /**
  38.      * Upon receiving this message the receiver should place any relevant
  39.      * state into <EM>state</EM>.
  40.      */
  41.     public void storeState(Hashtable state);
  42.  
  43.     /**
  44.      * Upon receiving this message the receiver should extract any relevant
  45.      * state out of <EM>state</EM>.
  46.      */
  47.     public void restoreState(Hashtable state);
  48. } // End of interface StateEditable
  49.